/*
 * Copyright 2015-2016 Imply Data, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@import '../../imports';

$immutable-list-width: 400px;

.immutable-list {
  $list-title-height: 44px;

  .list-title {
    display: flex;
    height: $list-title-height;
    width: $immutable-list-width;
    padding-top: 12px;
    border-bottom: 1px solid $border-super-light;

    .label {
      flex: 1 1;
      padding: 6px 0;

      color: $text-lighter;
      font-size: 12px;
      text-transform: uppercase;
    }

    .actions {
      button {
        @extend %button-light-action;
      }
    }
  }

  .simple-list {
    position: absolute;
    top: $list-title-height;
    bottom: 0;
    left: 0;
    right: 0;

    .row {
      width: $immutable-list-width;
    }
  }

  .empty-container {
    @include pin-left($immutable-list-width);

    .empty-message {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      text-align: center;
      color: $text-light;

      a {
        color: $brand;
        border-bottom: 1px dashed;
        cursor: pointer;
      }

      .label {
        display: inline-block;
        height: 46px;
        padding-top: 13px;
        font-size: 20px;
      }
    }
  }
}

.name-modal {
  form {
    width: 100%;

    > * {
      display: block;
    }

    input {
      @extend %default-input;
      margin-bottom: 25px;
    }
  }

  .button-group {
    margin-top: 30px;

    > *:not(:last-child) {
      margin-right: 10px;
    }
  }
}
